package com.qingcloud.adminbackend.entity.product;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * <p>
 * 产品指令模型
 * </p>
 *
 * @author zhoujun
 * @since 2021-10-13
 */
@Data
public class SysProductCommandDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "Id")
    private Integer id;

    @ApiModelProperty(value = "产品Id")
    @NotNull(message = "产品Id不能为空")
    private Integer productTypeId;


    @ApiModelProperty(value = "指令名称")
    @NotBlank(message = "指令名称不能为空")
    private String commandName;

    @ApiModelProperty(value = "指令英文名称")
    @NotBlank(message = "指令英文名称不能为空")
    private String commandModule;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "是否等待响应 1等待 2不等待", example = "1")
    private Integer waitResponse;

    /**
     * 产品指令分类id
     */
    @ApiModelProperty(value = "产品指令分类id")
    @NotNull(message = "产品指令分类id不能为空")
    private Integer productCommandClassifyId;

}
